package com.aiju.cash.ui.account.entity;

import android.text.TextUtils;

import com.aiju.cash.ui.account.AccountBudgetActivity;

/**
 * @author: 佐为
 * @date: 2017-04-07 10:00
 * @version: V1.0
 * @Description: 预算
 */
public class Budget {

    /**
     * 预算类型
     */
    private String budgetType;

    /**
     * 预算金额
     */
    private String budgetMoney;

    /**
     * 结余
     */
    private String surplusMoney;

    public String getSurplusMoney() {
        return surplusMoney;
    }

    public void setSurplusMoney(String surplusMoney) {
        this.surplusMoney = surplusMoney;
    }

    public String getBudgetMoney() {
        return budgetMoney;
    }

    public void setBudgetMoney(String budgetMoney) {
        this.budgetMoney = budgetMoney;
    }

    public String getBudgetType() {
        return budgetType;
    }

    public void setBudgetType(String budgetType) {
        this.budgetType = budgetType;
    }

    public String getBudgetTypeString() {
        if (TextUtils.isEmpty(budgetType)) {
            return "本月预算结余";
        }
        return AccountBudgetActivity.type.get(Integer.valueOf(budgetType)-1) + "结余";
    }
}
